
<template>
  <div>
    <div style="width: 500px; padding: 50px; margin: 50px auto; background: #fff;">
      <h1 style="text-align: center;">叮当猫用户登录</h1>
      <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="用户名">
          <el-input v-model="form.username"></el-input>
        </el-form-item>
        <el-form-item label="密码">
          <el-input v-model="form.password"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">登录</el-button>
          <el-button>取消</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      form: {
        username: '',
        password: ''
      }
    }
  },
  methods: {
    onSubmit() {
      alert('submit!');
    }
  }
}
</script>

<style>
body {
  background-image: url("../assets/ddmLogo.png");
  background-repeat: no-repeat;
  /*background: royalblue !important;*/
}
</style>